package com.dys.spring.service.impl;

import com.dys.spring.bean.User;
import com.dys.spring.dao.UserDao;
import com.dys.spring.service.UserService;

import java.util.List;

/**
 * @Author: 疾风
 * @ClassName: UserServiceImpl
 * @Description: User服务具体实现
 * @CreateDate: 2024/10/18
 * @Version: v1.0.0
 */
public class UserServiceImpl implements UserService {
    /**
     * 通过setter方式注入
     */
    private UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> findAllUser() {
        return userDao.selectAllUsers();
    }
}
